<template>
    <div>
        <el-dialog
            title="创建用户"
            :visible="visible">
            <el-form :model="form">
                <el-form-item label="用户名:">
                    <el-input v-model="form.name" placeholder="请输入用户名"></el-input>
                </el-form-item>
                <el-form-item label="密码:">
                    <el-input v-model="form.password" placeholder="请输入密码"></el-input>
                </el-form-item>
                <el-form-item label="手机号:">
                    <el-input v-model="form.phone" placeholder="请输入手机号"></el-input>
                </el-form-item>
                <el-form-item label="邮箱:">
                    <el-input v-model="form.email" placeholder="请输入邮箱"></el-input>
                </el-form-item>
            </el-form>
            <el-form-item label="活动区域" >
                <el-select  placeholder="请选择活动区域">
                    <el-option label="区域一" value="shanghai"></el-option>
                    <el-option label="区域二" value="beijing"></el-option>
                </el-select>
            </el-form-item>
            <div slot="footer" class="dialog-footer">
                <el-button @click="canlen">取 消</el-button>
                <el-button type="primary" @click="addUser">确 定</el-button>
            </div>
        </el-dialog>
    </div>
</template>

<script>
import axios from 'axios'
export default {
    props:['visible'],
    data() {
        return {
            form:{
                name: ''
            }
        }
    },
    methods: {
        addUser() {
            alert('tianjia')
            this.$emit('update:visible', false)
        },
        canlen() {
            this.$emit('update:visible', false)
        }
    },
    computed: {

    },
    created() {

    }
}
</script>

<style scoped>

</style>
